package com.hitales.liteflow.liteflowdemo.cmp;

import com.ql.util.express.DefaultContext;
import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.flow.LiteflowResponse;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoTest {

    @Resource
    private FlowExecutor flowExecutor;

    /**
     * 普通的组件流程
     */
    @GetMapping("demo")
    public void testConfig(){
        LiteflowResponse response = flowExecutor.execute2Resp("chain1", "arg", DefaultContext.class);
    }
}


